// api.js
import axios from 'axios';


// 定义基础URL
axios.defaults.baseURL = 'http://10.39.5.244:8081'


export function getAcademyList(page) {
    return axios.get('/academy/list',{params:page});
}
export function delAcademy(academy) {
    return axios.post('/academy/del', academy);
}

export function addAcademy(academy) {
    return axios.post('/academy/add', academy);
}
export function modifyAcademy(academy) {
    return axios.post('/academy/modify', academy);
}

